import { request } from "@/utils/http"
const userLogin = (data) => {
    return request({
        method:'POST',
        url:'/user/login',
        data
    })
}
const userRegister = (data) => {
    return request({
        method:'POST',
        url:'/user/register',
        data
    })
}

const emailCode = (email) => {
    return request({
        method:'GET',
        url:'/user/emailCode?email='+email,
    })
}



export { 
    userLogin,userRegister,emailCode
}
